package com.suyx.job.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.suyx.job.entity.PhGoodsPriceInfo;


/**
 * @Auther: suyx
 * @Date: 2018/10/18 0018 11:34
 * @Description:
*/
@Repository
public interface PhGoodsPriceInfoRepository extends JpaRepository<PhGoodsPriceInfo,Integer> ,JpaSpecificationExecutor<PhGoodsPriceInfo> {
	
   
   //@Query(value = "select * from ph_goods_price_info where ph_goods_price_info.server_name = :serverName and ph_goods_price_info.goods_type = :goodsType ",nativeQuery = true)
   PhGoodsPriceInfo findByServerNameAndGoodsType(String serverName, String goodsType);
}
	